package com.hly.product.feign;

import com.hly.common.to.SkuReductionTo;
import com.hly.common.to.SpuBoundTo;
import com.hly.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @program: SpringCloud
 * Author HLY
 * @desc
 * @create: 2021-04-22 13:35
 **/
@FeignClient(value = "mall-sms")
public interface SmsFeign {

    /**
     * 调用mall-sms 服务，保存商品的积分信息
     */
    @RequestMapping("/sms/spubounds/save")
    public R save(@RequestBody SpuBoundTo spuBoundTo);

    /**
     * 调用mall-sms 服务，保存Sku的打折、满减、会员价格
     */
    @RequestMapping("/sms/skufullreduction/saveInfo")
    R saveInfo(@RequestBody SkuReductionTo skuReductionTo);


}
